package com.waidi.clothespad.common;
import android.os.Parcel;
import android.os.ParcelUuid;
import android.os.Parcelable;

public class RealData implements Parcelable {
    public String line_number;
    public  String work_station;
    public String worker_id;
    public  String worker_name;
    public String style_id;
    public String order_id;
    public  String style_colour;
    public String style_size;
    public  String opera_code;
    public  String opera_desc;
    public  String hangerid;
    public  String lineproject;


    public RealData(){
        line_number = "";
        work_station = "";
        worker_id = "";
        worker_name = "";
        style_id ="";
        order_id= "";
        style_colour = "";
        style_size = "";
        opera_code = "";
        opera_desc = "";
        hangerid="";
        lineproject="";
    }

    public RealData(Parcel in){
        //顺序要和writeToParcel写的顺序一样
        line_number = in.readString();
        work_station = in.readString();
        worker_id = in.readString();
        worker_name = in.readString();
        style_id =in.readString();
        order_id= in.readString();
        style_colour =in.readString();
        style_size = in.readString();
        opera_code = in.readString();
        opera_desc = in.readString();
        hangerid = in.readString();
        lineproject=in.readString();
    }
    @Override
    public int describeContents() {
        // TODO Auto-generated method stub
        return 0;
    }
    @Override
    public void writeToParcel(Parcel dest, int flags) {
        // TODO Auto-generated method stub
        dest.writeString(line_number);
        dest.writeString(work_station);
        dest.writeString(worker_id);
        dest.writeString(worker_name);
        dest.writeString(style_id);
        dest.writeString(order_id);
        dest.writeString(style_colour);
        dest.writeString(style_size);
        dest.writeString(opera_code);
        dest.writeString(opera_desc);
        dest.writeString(hangerid);
        dest.writeString(lineproject);
    }


    public static final Parcelable.Creator<RealData> CREATOR = new Parcelable.Creator<RealData>() {
        public RealData createFromParcel(Parcel in) {
            return new RealData(in);
        }

        public RealData[] newArray(int size) {
            return new RealData[size];
        }
    };
}